//
//  UITextField+Extension.swift
//  FG
//
//  Created by 红沙尘 on 2018/11/23.
//  Copyright © 2018年 红沙尘. All rights reserved.
//

import Foundation
import UIKit

extension UITextField {
    func placeholderColor(color:UIColor, string:String) {
        let placeholserAttributes = [NSAttributedStringKey.foregroundColor : color]
        self.attributedPlaceholder = NSAttributedString(string: string,attributes: placeholserAttributes)
    }
}
